#include <stdio.h>
void print(unsigned int x )
{
    while(x>9)
    {
        print(x/10);
    }
    printf("%d",x%10);
}
int main()
 {
    unsigned int n=0;
    scanf("%d",&n);
    print(n);//调用print函数
    return 0;
 }